﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ObjEdit.aspx.cs" Inherits="AMSInventoryWeb.BaseData.ObjEdit" %>

<%@ Register Src="../UserControls/NavigateCtl.ascx" TagName="NavigateCtl" TagPrefix="uc1" %>
<%@ Register Src="../UserControls/SelectAssetCtl.ascx" TagName="SelectAssetCtl" TagPrefix="uc2" %>
<%@ Register Src="../UserControls/SelectedAssetCtl.ascx" TagName="SelectedAssetCtl"
    TagPrefix="uc3" %>
<%@ Register Src="../UserControls/ImportAssetInfoCtl.ascx" TagName="ImportAssetInfoCtl"
    TagPrefix="uc4" %>
<%@ Register Src="../UserControls/PlanAssetInfoCtl.ascx" TagName="PlanAssetInfoCtl"
    TagPrefix="uc5" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <base target="_self" />
    <link href="../ScriptFiles/CSS/Main.css" type="text/css" rel="stylesheet" />
    <link href="../ScriptFiles/CSS/style.css" type="text/css" rel="Stylesheet" />

    <script src="../ScriptFiles/JS/jquery.js" type="text/javascript"></script>

    <script src="../ScriptFiles/JS/PageRuleChecker.js" type="text/javascript"></script>

    <script type="text/javascript" language="javascript">
        $(document).ready(function() {
           AddTip();
            $("body").append("<input id='" + errMsgId + "' type='hidden' value='' />");
            $("#btnEnter,a[class^='pgMenu']").click(function() {
                SetCtlCheck();
                var errMsg = $("#" + errMsgId);
                if (errMsg.val() != "") {
                    alert(errMsg.val());
                    return false;
                }
            });
        });

        function ClearInput() {
            var input = document.getElementsByTagName("input");
            for (var i = 0; i < input.length; i++)
                if (input[i].type == "text") {
                input[i].value = "";
            }
        }
    </script>

</head>
<body id="master">
    <form runat="server">
    <table class="tableElse" width="100%" style="border: 1px solid #A8CFEB; margin-top: 2px;">
        <tr>
            <td>
                <uc1:NavigateCtl ID="NavigateCtl1" runat="server" />
            </td>
        </tr>
        <tr>
            <td>
                <asp:Menu ID="pgMenu" Orientation="Horizontal" StaticMenuItemStyle-CssClass="tab"
                    Font-Size="12px" StaticSelectedStyle-CssClass="selectedTab" CssClass="tabs" runat="server" style="margin-left:0px"
                    OnMenuItemClick="pgMenu_MenuItemClick">
                    <Items>
                    </Items>
                </asp:Menu>
            </td>
        </tr>
    </table>
    <div id="divBaseInfo" runat="server">
        <table style="border: 1px solid #A8CFEB; background-color: #F1F6FF; margin-top: 2px;width: 100%; font-size: 12px;" runat="server" id="btnOperater">
            <tr>
                <td colspan="2">
                    <asp:Button runat="server" ID="btnEnter" Text="确定" OnClick="btnEnter_Click" class="btn_mouseout"
                        onmouseover="this.className='btn_mouseover' " onmouseout="this.className='btn_mouseout' "
                        onmousedown="this.className='btn_mousedown'" onmouseup="this.className='btn_mouseup'" />&nbsp;&nbsp;
                    <asp:Button runat="server" ID="btnAdd" Text="添加" OnClick="btnAdd_Click" class="btn_mouseout"
                        OnClientClick="return ClearInput();" onmouseover="this.className='btn_mouseover' "
                        onmouseout="this.className='btn_mouseout' " onmousedown="this.className='btn_mousedown'"
                        onmouseup="this.className='btn_mouseup'" />&nbsp;&nbsp;
                    <asp:Button runat="server" ID="btnCancel" Text="返回" OnClick="btnCancel_Click" class="btn_mouseout"
                        onmouseover="this.className='btn_mouseover' " onmouseout="this.className='btn_mouseout' "
                        onmousedown="this.className='btn_mousedown'" onmouseup="this.className='btn_mouseup'" />&nbsp;&nbsp;
                    【页面操作状态：<asp:Label runat="server" ID="lblPageState" ForeColor="DodgerBlue"></asp:Label>】
                </td>
            </tr>
        </table>
        <table id="table1" style="border: 1px solid #A8CFEB; background-color: #F1F6FF; margin-top: 4px;
            width: 100%; margin-left: 0px" runat="server">
        </table>
        <uc5:PlanAssetInfoCtl ID="ucPlanInfo" runat="server" />
    </div>
    <div id="divSelectInfo" runat="server">
        <uc2:SelectAssetCtl ID="ctlSelect" runat="server" />
    </div>
    <div id="divSelectedInfo" runat="server">
        <uc3:SelectedAssetCtl ID="ctlSelected" runat="server" />
        <uc4:ImportAssetInfoCtl ID="ctlImportor" runat="server" />
    </div>
    </form>
</body>
</html>
